
package myviewpage;


import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

public class MyViewPage extends ViewPager {

	public MyViewPage(Context context) {
		super(context);
		
	}

	public MyViewPage(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	public boolean dispatchTouchEvent(MotionEvent ev) {
		// 鍙渶杩欏彞璇濓紝璁╃埗绫讳笉鎷︽埅瑙︽懜浜嬩欢灏卞彲浠ヤ簡銆�
		getParent().requestDisallowInterceptTouchEvent(true);
		return super.dispatchTouchEvent(ev);
	}
}
